<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>电商流水贷</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <link rel="stylesheet" href="https://weui.io/weui.css">
    <style>
        *{
            font-family: 'Microsoft Yahei';
        }
        html,body,h1,h2,h3,h4,h5,h6{
            margin: 0;
            padding: 0;
        }
        html,body{
            background: #eaeaea;
            height: 100%;
            font-size: 12px;
            width: 100%;
        }
        .logo{
            background-color: #ff6100;
            position: relative;
            padding: 1.5rem 0 1.5rem 1rem;
        }
        .logo b{
            color: white;
            display: inline-block;
            font-size: 2.5rem;
            max-width: 100%;
            min-width: 0;
        }
        .logo img{
            height: 3rem;
            position: absolute;
            right: 1rem;
        }
        .navbar{
            display: flex;
            background: #fcfcfc;
            width: inherit;
            padding-left: .5rem;
            padding-right: .5rem;
        }
        .navbar-item{
            border-right: 1px solid #eee;
            -webkit-flex:1;
            flex: 1;
            font-size: 1.5rem;
            text-align: center;
            padding: 1rem 0;
        }
        .navbar-item:last-child{
            border-right: none;
        }
        .tab-panel{
            background-color: #fff;
            color: #333;
            display: none;
            font-size: 1.5rem;
            margin-top: .8rem;
            padding-top: .3rem;
        }
        .tab-panel ul{
            margin-left: 3rem;
        }
        .tab-panel img{
            height: auto;
            width: 100%;
        }
        /* active status */
        .bar-item-on{
            color: #ff6100;
            border-bottom: 2px solid #ff6100;
        }
        .panel-on{
            display: block;
        }
        /* advantage part */
        .advantage h5{
            color: grey;
        }
        /* process part */
        .process ul{
            list-style: none;
        }
        .process ul .step{
            margin-left: 4rem;
        }
        .process ul li,.advantage ul li{
            width: 100%;
            padding: 1rem 0;
        }
        .icon{
            background-size: cover;
            display: inline-block;
            float: left;
            -webkit-flex: 1;
            flex: 1;
            height: 2.5rem;
            width: 2.5rem;
        }
        .icon.first{
            background-image: url(./images/1.png);
        }
        .icon.second{
            background-image: url(./images/2.png);
        }
        .icon.third{
            background-image: url(./images/3.png);
        }
        .icon.forth{
            background-image: url(./images/4.png);
        }
        /*apply*/
        .apply .weui-cells:before{
            border: none !important;
            border-bottom: 1px solid #d9d9d9;
        }
        .submit{
            background-color: #ff6100;
            margin-top: 2rem;
        }
        .has-house{
            margin-right: 1rem;
            width: auto;
        }
        .apply .yes{
            margin-right: 1rem;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="logo">
            <b>电商流水贷</b>
            <img src="./images/pingan_logo.png" alt="平安银行logo">
        </div>
        <div class="navbar-tab">
            <div class="navbar">
                <div class="navbar-item" data-panel="advantage">
                    产品优势
                </div>
                <div class="navbar-item" data-panel="process">
                    申请流程
                </div>
                <div class="navbar-item" data-panel="apply">
                    我要申请
                </div>
            </div>
            <div class="tab-panel advantage" id="advantage">
                <ul>
                    <li><h4>经营数据显价值</h4><h6>天猫店铺凭连续24个月的销售数据，即可申请最高100万的信用贷款。</h6></li>
                    <li><h4>纯凭信用条件少</h4><h6>无需抵押，无需担保，依据经营数据贷款，经营规模越大，服务评价越好，可融资的金额就越高。</h6></li>
                    <li><h4>申请放款效率高</h4><h6>在线及时预估贷款额度，申请简单，100万以下当天申请当天审批，最快可当天提款，即时到账。</h6></li>
                    <li><h4>随借随还成本低</h4><h6>借款一个月后，随借随还，按日计息，日息低至万分之3.9。</h6></li>
                </ul>
                <img src="./images/qr-code.jpg" alt="扫码关注">
            </div>
            <div class="tab-panel process" id="process">
                <div class="weui-panel__bd">
                    <a href="javascript:void(0);" class="weui-media-box weui-media-box_appmsg">
                        <div class="weui-media-box__hd">
                            <img class="weui-media-box__thumb" src="./images/1.png" alt="">
                        </div>
                        <div class="weui-media-box__bd">
                            <h4 class="weui-media-box__title">填写信息</h4>
                            <p class="weui-media-box__desc">借款人信息、公司信息、店铺信息</p>
                        </div>
                    </a>
                    <a href="javascript:void(0);" class="weui-media-box weui-media-box_appmsg">
                        <div class="weui-media-box__hd">
                            <img class="weui-media-box__thumb" src="./images/2.png" alt="">
                        </div>
                        <div class="weui-media-box__bd">
                            <h4 class="weui-media-box__title">专人服务</h4>
                            <p class="weui-media-box__desc">银行工作人员上门进件</p>
                        </div>
                    </a>
                    <a href="javascript:void(0);" class="weui-media-box weui-media-box_appmsg">
                        <div class="weui-media-box__hd">
                            <img class="weui-media-box__thumb" src="./images/3.png" alt="">
                        </div>
                        <div class="weui-media-box__bd">
                            <h4 class="weui-media-box__title">面签合同</h4>
                            <p class="weui-media-box__desc">客户到银行签订相关合同</p>
                        </div>
                    </a>
                    <a href="javascript:void(0);" class="weui-media-box weui-media-box_appmsg">
                        <div class="weui-media-box__hd">
                            <img class="weui-media-box__thumb" src="./images/2.png" alt="">
                        </div>
                        <div class="weui-media-box__bd">
                            <h4 class="weui-media-box__title">客户收款</h4>
                            <p class="weui-media-box__desc">银行按照合同发放贷款金额</p>
                        </div>
                    </a>
                </div>
                <!-- <ul>
                    <li><i class="icon first"></i><div class="step"><h4>填写信息</h4><span>借款人信息、公司信息、店铺信息</span></div></li>
                    <li><i class="icon second"></i><div class="step"><h4>专人服务</h4><span>银行工作人员上门进件</span></div></li>
                    <li><i class="icon third"></i><div class="step"><h4>面签合同</h4><span>客户到银行签订相关合同</span></div></li>
                    <li><i class="icon forth"></i><div class="step"><h4>客户收款</h4><span>银行按照合同发放贷款金额</span></div></li>
                </ul> -->
                <img src="./images/qr-code.jpg" alt="扫码关注">
            </div>
            <div class="tab-panel apply" id="apply">
                <div class="weui-cells weui-cells_form">
                    <div class="weui-cell">
                        <div class="weui-cell__hd"><label class="weui-label">天猫店铺名称</label></div>
                        <div class="weui-cell__bd">
                            <input class="weui-input" type="text" placeholder="请输入天猫店铺名称">
                        </div>
                    </div>
                    <div class="weui-cell">
                        <div class="weui-cell__hd"><label class="weui-label">联系人名称</label></div>
                        <div class="weui-cell__bd">
                            <input class="weui-input" type="text" placeholder="请输入联系人名称">
                        </div>
                    </div>
                    <div class="weui-cell">
                        <div class="weui-cell__hd"><label class="weui-label">联系人职务</label></div>
                        <div class="weui-cell__bd">
                            <input class="weui-input" type="text" placeholder="请输入联系人职务">
                        </div>
                    </div>
                    <div class="weui-cell">
                        <div class="weui-cell__hd">
                            <label class="weui-label">手机号</label>
                        </div>
                        <div class="weui-cell__bd">
                            <input class="weui-input" type="tel" placeholder="请输入手机号">
                        </div>
                    </div>
                    <div class="weui-cell">
                        <div class="weui-cell__hd">
                            <label class="weui-label">上年销售额</label>
                        </div>
                        <div class="weui-cell__bd">
                            <input class="weui-input" type="tel" placeholder="请输入上年销售额">
                        </div>
                        <div class="weui-cell__hd">
                            <label class="weui-label">万元</label>
                        </div>
                    </div>
                    <div class="weui-cell">
                        <div class="weui-cell__hd">
                            <label class="weui-label has-house">是否拥有店铺所在地的房产或户口</label>
                        </div>
                        <label class="yes"><input name="house" type="radio" value="1" />是</label> 
                        <label><input name="house" type="radio" value="0" />否</label> 
                    </div>
                    <div class="weui-cell weui-cell_vcode">
                        <div class="weui-cell__hd"><label class="weui-label">验证码</label></div>
                        <div class="weui-cell__bd">
                            <input class="weui-input" type="number" placeholder="请输入验证码">
                        </div>
                        <div class="weui-cell__ft">
                            <img class="weui-vcode-img" src="https://weui.io/images/vcode.jpg">
                        </div>
                    </div>
                </div>
                <a href="javascript:;" class="weui-btn submit">提交</a>
            </div>
        </div>
    </div>

    <script src="https://www.welinkcredit.com/wp-includes/js/jquery/jquery.js?ver=1.12.4"></script>
    <script>
        "use strict";

        ;(function($){

            $('.navbar-item').each(function(index, el) {
                $(this).click(function(event) {
                    var _self = $(this);
                    var panel = _self.data('panel');
                    panelOn(panel,_self);
                    Router.setFragment(panel);
                });
            });

            function panelOn(panel,_self){
                if (panel) {
                    $('.tab-panel').removeClass('panel-on');
                    $('#' + panel).addClass('panel-on');
                    $("[data-panel='" + panel + "']").addClass('bar-item-on');
                }else{
                    $('#advantage').addClass('panel-on');
                }

                if (_self) {
                    $('.navbar-item').removeClass('bar-item-on');
                    _self.addClass('bar-item-on');
                }else if(!panel){
                    $("[data-panel='advantage']").addClass('bar-item-on');
                }
            }
            var Router = {
                    routes: [],
                    mode: null,
                    root: '/',
                    config: function(options) {
                        this.mode = options && options.mode && options.mode == 'history' 
                                    && !!(history.pushState) ? 'history' : 'hash';
                        this.root = options && options.root ? '/' + this.clearSlashes(options.root) + '/' : '/';
                        return this;
                    },
                    getFragment: function() {
                        var fragment = '';
                        if(this.mode === 'history') {
                            fragment = this.clearSlashes(decodeURI(location.pathname + location.search));
                            fragment = fragment.replace(/\?(.*)$/, '');
                            fragment = this.root != '/' ? fragment.replace(this.root, '') : fragment;
                        } else {
                            var match = window.location.href.match(/#(.*)$/);
                            fragment = match ? match[1] : '';
                        }
                        return this.clearSlashes(fragment);
                    },
                    setFragment: function(fragment){
                        var fragment = this.clearSlashes(fragment);
                        location.href = location.pathname + '#' + fragment;
                    },
                    clearSlashes: function(path) {
                        return path.toString().replace(/\/$/, '').replace(/^\//, '');
                    },
                    add: function(re, handler) {
                        if(typeof re == 'function') {
                            handler = re;
                            re = '';
                        }
                        this.routes.push({ re: re, handler: handler});
                        return this;
                    },
                    remove: function(param) {
                        for(var i=0, r; i<this.routes.length, r = this.routes[i]; i++) {
                            if(r.handler === param || r.re.toString() === param.toString()) {
                                this.routes.splice(i, 1); 
                                return this;
                            }
                        }
                        return this;
                    },
                    flush: function() {
                        this.routes = [];
                        this.mode = null;
                        this.root = '/';
                        return this;
                    },
                    check: function(f) {
                        var fragment = f || this.getFragment();
                        for(var i=0; i<this.routes.length; i++) {
                            var match = fragment.match(this.routes[i].re);
                            if(match) {
                                match.shift();
                                this.routes[i].handler.apply({}, match);
                                return this;
                            }           
                        }
                        return this;
                    },
                    listen: function() {
                        var self = this;
                        var current = self.getFragment();
                        var fn = function() {
                            if(current !== self.getFragment()) {
                                current = self.getFragment();
                                self.check(current);
                            }
                        }
                        clearInterval(this.interval);
                        this.interval = setInterval(fn, 50);
                        return this;
                    },
                    navigate: function(path) {
                        path = path ? path : '';
                        if(this.mode === 'history') {
                            history.pushState(null, null, this.root + this.clearSlashes(path));
                        } else {
                            window.location.href = window.location.href.replace(/#(.*)$/, '') + '#' + path;
                        }
                        return this;
                    }
                }            

            panelOn(Router.getFragment());

        })(jQuery);

    </script>
</body>
</html>